package store.lunangangster.engine.bpmn.parser;

import store.lunangangster.engine.bpmn.parser.handler.BpmnParseHandlers;
import store.lunangangster.engine.impl.entity.ResourceEntity;

public class BpmnParserBuilder {

  protected BpmnParser bpmnParser;

  public BpmnParserBuilder(BpmnParseHandlers bpmnParseHandlers) {
    bpmnParser = new BpmnParser(bpmnParseHandlers);
  }

  public BpmnParserBuilder setResource(ResourceEntity resource) {
    bpmnParser.setResourceEntity(resource);
    return this;
  }

  public BpmnParser build() {
    return bpmnParser;
  }

}
